package com.ktgj.customer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 支付记录对象 travel_order_payment_record
 * 
 * @author ruoyi
 * @date 2022-11-14
 */
public class TravelOrderPaymentRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支付记录表主键 */
    private Long payId;

    /** 支付总金额 */
    @Excel(name = "支付总金额")
    private BigDecimal payAmount;

    /** 交易流水号 */
    @Excel(name = "交易流水号")
    private String tradeNo;

    /** 支付交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeTime;

    /** 支付状态：0未支付，1已支付 */
    @Excel(name = "支付状态：0未支付，1已支付")
    private String payStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payMethod;

    /** $column.columnComment */
    @Excel(name = "支付方式")
    private Long orderId;

    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setTradeTime(Date tradeTime) 
    {
        this.tradeTime = tradeTime;
    }

    public Date getTradeTime() 
    {
        return tradeTime;
    }
    public void setPayStatus(String payStatus) 
    {
        this.payStatus = payStatus;
    }

    public String getPayStatus() 
    {
        return payStatus;
    }
    public void setPayMethod(String payMethod) 
    {
        this.payMethod = payMethod;
    }

    public String getPayMethod() 
    {
        return payMethod;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("payId", getPayId())
            .append("payAmount", getPayAmount())
            .append("createTime", getCreateTime())
            .append("tradeNo", getTradeNo())
            .append("tradeTime", getTradeTime())
            .append("payStatus", getPayStatus())
            .append("payMethod", getPayMethod())
            .append("orderId", getOrderId())
            .toString();
    }
}
